<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML>
<html>
<head>
    <title>首页</title>
    <style type="text/css">
        div {
            width: 400px;
            height: 300px;
            margin: 200px auto;
            text-align: center;
            line-height: 38px;
            background: darkorange;
            border-radius: 4px;
        }
    </style>
</head>
<body>


<div>
    <h3>小视频上传</h3>

    <form action="/upload" method="post" enctype="multipart/form-data">
        <input type="file" name="fname">
        <br/>
        <input type="submit" name="提交" style="width: auto">
        <span>
            <c:if test="${not empty fileSystem}">
                <br>
                文件上传成功<br>
                原文件名:${fileSystem.fileName}<br>
                <a href="http://192.168.32.130:80/${fileSystem.fileId}">查看文件</a>
            </c:if>
        </span>
    </form>
</div>
</body>
</html>
